#include "trianglewidget.h"
#include <QApplication>
#include <QThread>
#include <QTimer>


int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    TriangleWidget w;
    w.resize(1280, 720);
    std::thread myThread(&TriangleWidget::ChangeWidget, &w);
    myThread.detach();
    w.show();

    return a.exec();
}
